<?php
  include('../varsandfunctions.php');
  $db = new PDO('sqlite:../supermaps.db');  
  $campus_buildings = make_query("select * from Buildings where parent_map = 'engineering'")->fetchAll(PDO::FETCH_ASSOC);
  foreach($campus_buildings as $bldg) {
    echo('<a href="javascript:void(0)" id="'.$bldg[id].'" class="bullet" rel="'.$bldg[x].'-'.$bldg[y].'">&nbsp;</a>');
    echo('<div class="popup" id="'.$bldg[id].'-box">');
    echo("<h3>$bldg[name]</h3>");
    echo('<div class="popupcontent">');
    echo('</div>');
    echo('<a class="close" href="javascript:void(0)">Close</a>');
    echo('</div>');
  }
?>
